-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Use Semconv Naming For ActionPack #1224
feat: Use Semconv Naming For ActionPack #1224
Conversation
Aligns the span name closer to the specification instead of using Ruby class/method naming syntax Fixes open-telemetry#961
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Added a couple of queries for commented out assertions.
@@ -65,7 +64,7 @@ | |||
|
|||
_(last_response.body).must_equal 'created new item' | |||
_(last_response.ok?).must_equal true | |||
_(span.name).must_equal 'ExampleController#new_item' | |||
# _(span.name).must_equal 'GET example/new_item' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should these be updated or removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh my. That definitely was a mistake on my part.
Thank you for pointing this out!
describe 'when the application has exceptions_app configured' do | ||
let(:rails_app) { AppConfig.initialize_app(use_exceptions_app: true) } | ||
|
||
it 'does not overwrite the span name from the controller that raised' do | ||
get 'internal_server_error' | ||
|
||
_(span.name).must_equal 'ExampleController#internal_server_error' | ||
# _(span.name).must_equal 'GET example/show' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should these be updated or removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😳
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Aligns the span name closer to the specification instead of using Ruby class/method naming syntax
Fixes #961